package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("basic_camera")
@ApiModel("摄像头信息")
public class BasicCamera extends BasePojo {

    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "摄像头IP" )
    @TableField(value = "camIp")
    private String camIp;

    @ApiModelProperty(value = "摄像头端口号")
    @TableField(value = "camPort")
    private int camPort;

    @ApiModelProperty(value = "RTSP端口")
    @TableField(value = "rtspPort")
    private  Integer rtspPort;

    @ApiModelProperty(value = "通道号")
    @TableField(value = "camIndex")
    private Integer camIndex;

    @ApiModelProperty(value = "摄像头别名")
    @TableField(value = "camAlias")
    private String camAlias;

    @ApiModelProperty("摄像头编号")
    @TableField(value = "camNo")
    private String camNo;

    @ApiModelProperty(value = "设备登录用户名" )
    @TableField(value = "camUser")
    private String camUser;

    @ApiModelProperty(value = "密码")
    @TableField(value = "camPwd")
    private String camPwd;

    @ApiModelProperty(value = "摄像头型号")
    @TableField(value = "camModel")
    private String camModel;

    @ApiModelProperty(value = "摄像头品牌")
    @TableField(value = "camBrands")
    private String camBrands;

    @ApiModelProperty(value = "摄像头类型,枪机，球机")
    @TableField(value = "camType")
    private String camType;

    @ApiModelProperty("设备类型camera,rtsp")
    @TableField(value = "devType")
    private String devType;

    @ApiModelProperty("摄像头rtsp地址")
    @TableField(value = "rtspUrl")
    private String rtspUrl;

    @ApiModelProperty(value = "照片路径")
    @TableField(value = "photoPath")
    private String photoPath;

    @ApiModelProperty("描述简介")
    private String remark;

    @ApiModelProperty("摄像头设备id")
    @TableField(value = "devId")
    private Integer  devId;

    @ApiModelProperty("摄像头在线离线状态，normal在线，offline离线")
    @TableField(value = "lineStatus")
    private String lineStatus;

    @ApiModelProperty("组织id")
    @TableField(value = "orgId")
    private int orgId;

    @ApiModelProperty(value = "摄像头状态")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime")
    private Date createTime;


}
